# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=poetry
pkgver=1.0.10
pkgrel=0
pkgdesc="Python3 dependency management and packaging system"
url="https://python-poetry.org"
arch="noarch"
license="MIT"
options="!check" # TODO: add tests
depends="
	python3
	py3-cleo
	py3-clikit
	py3-requests
	py3-cachy
	py3-requests-toolbelt
	py3-jsonschema
	py3-pyrsistent
	py3-parsing
	py3-cachecontrol
	py3-pkginfo
	py3-html5lib
	py3-shellingham
	py3-tomlkit
	py3-pexpect
	py3-keyring
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/sdispater/poetry/archive/$pkgver.tar.gz
	poetry.py
	"

package() {
	rm -rf "$pkgdir"/usr/lib/poetry/poetry

	install -d "$pkgdir"/usr/lib/poetry
	cp -r poetry "$pkgdir"/usr/lib/poetry/poetry

	install -Dm0755 "$srcdir"/poetry.py "$pkgdir"/usr/bin/poetry
}

sha512sums="faec1fb3f94cbde6a5c2ae596eecbd4d590482bf38061e31b3ea4c8ef9d4bb8d36b40e4f4cb5be759bfa63a34ed2b3abe50acdceb18336548bc30b8591f68224  poetry-1.0.10.tar.gz
fca6cad49967e7fae7fcdd12e6d15da649f11dd0acfc6e0904eb75ec1f3b477a28328553a4b356422087a3f375d5a4851cf9c793eb041f7ae427352b4747a6fc  poetry.py"
